# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-flake8-import-order
_pkgname=flake8-import-order
pkgver=0.18.1
pkgrel=1
pkgdesc="Extension for flake8 which checks for the ordering of import statements"
options="!check" # Requires unpackaged pylama
url="https://github.com/public/flake8-import-order"
arch="noarch"
license="MIT"
depends="py3-flake8"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-flake8-import-order" # Backwards compatibility
provides="py-flake8-import-order=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="f7c6e53d1033214f774b6b169deff2872e6eb36a3656cdd723449561611ad90c0be5fbbd822e1bba9e93f64f83f40fa3823aa5a21c22b9df0b3426f8182239f2  flake8-import-order-0.18.1.tar.gz"
